<?php


class HttpException extends Exception{
    public function getStatusCode(){
        return $this->statusCode;
    }
    public function getheader(){
        return $_SERVER['SERVER_PROTOCOL'].' '.$this->statusCode.' '.$this->headerDescription;
    }
    public function getUserText(){
        return null;
    }
}
class Http405Exception extends HttpException{
    protected $statusCode = 405;
    protected $headerDescription = 'Method Not Allowed';
}
class Http404Exception extends HttpException{
    protected $statusCode = 404;
    protected $headerDescription = 'Not Found';
}
class Http403Exception extends HttpException{
    protected $statusCode = 403;
    protected $headerDescription = 'Forbidden';
}
class Http401Exception extends HttpException{
    protected $statusCode = 401;
    protected $headerDescription = 'Authentication Required';
}


?>